/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-05-27
 * Time: 23:50
 */
public class Test14 {
    public static void main(String[] args) {
        String str = "helloclassmates";
        //从索引5截到字符串末尾
        System.out.println(str.substring(5));
        //从下标0截到字符串索引5,不包括索引5的字符！！！ 截取区间为[0,5)
        System.out.println(str.substring(0, 5));
    }
}
